home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 1.iso / dist / patchSG0003743.idb / usr / include / clibdefs.h.z / clibdefs.h
C/C++ Source or Header  |  2001-04-12  |  2KB  |  91 lines

  1. /* USMID @(#) clibinc/clibdefs.h    92.2    07/26/99 12:57:02 */
  2.  
  3. /*
  4. *
  5. * Copyright 1997, Silicon Graphics, Inc.
  6. * All Rights Reserved.
  7. *
  8. * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  9. * the contents of this file may not be disclosed to third parties, copied or
  10. * duplicated in any form, in whole or in part, without the prior written
  11. * permission of Silicon Graphics, Inc.
  12. *
  13. * RESTRICTED RIGHTS LEGEND:
  14. * Use, duplication or disclosure by the Government is subject to restrictions
  15. * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  16. * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  17. * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  18. * rights reserved under the Copyright Laws of the United States.
  19. */
  20.  
  21. /*      (C) COPYRIGHT CRAY RESEARCH, INC.
  22.  *      UNPUBLISHED PROPRIETARY INFORMATION.
  23.  *      ALL RIGHTS RESERVED.
  24.  */
  25.  
  26. #ifndef _CLIBDEFS_H
  27. #define _CLIBDEFS_H
  28.  
  29. /*
  30.  * Note SV2 is part of _CRAY.
  31.  */
  32. #if    defined(_LITTLE_ENDIAN)        /* Little Endian IEEE */
  33. #include <sys/cdefs.h>
  34.  
  35. #ifndef _WORD32
  36. #define    _WORD32        1        /* sizeof(int) is 4 bytes/32 bits */
  37. #endif
  38.  
  39. #elif    _CRAY
  40.  
  41. #include <sys/cdefs.h>
  42.  
  43. #elif defined(_ABSOFT)
  44.  
  45. #ifndef _WORD32
  46. #define _WORD32        1        /* sizeof(int) is 4 bytes/32 bits */
  47. #endif
  48. #ifndef _ADDR32
  49. #define _ADDR32        1        /* sizeof(int*) is 4 bytes/32 bits */
  50. #endif
  51. #ifndef _CRAYIEEE
  52. #define _CRAYIEEE    1        /* IEEE arithmetic */
  53. #endif
  54.  
  55. #include <sys/cdefs.h>
  56.  
  57. #elif    defined(__mips)
  58.  
  59. #include <sys/cdefs.h>
  60.  
  61. #if     _MIPS_SZLONG == 32
  62. #define    _WORD32        1        /* sizeof(long) is 4 bytes/32 bits */
  63. #endif
  64.  
  65. #else    /* Solaris assumed */
  66.  
  67. #define    _SOLARIS    1
  68. #define    _WORD32        1        /* sizeof(int) is 4 bytes/32 bits */
  69. #define    _ADDR32        1        /* sizeof(int*) is 4 bytes/32 bits */
  70. #define    _CRAYIEEE    1        /* IEEE arithmetic */
  71.  
  72. #if defined(__cplusplus)
  73. #define __BEGIN_DECLS   extern "C" {
  74. #define __END_DECLS     };
  75. #define _DOTDOTDOT ...
  76. #else
  77. #define __BEGIN_DECLS
  78. #define __END_DECLS
  79. #define _DOTDOTDOT
  80. #endif
  81.  
  82. #if defined(__STDC__) || defined(__cplusplus)
  83. #define __(_A)  _A
  84. #else
  85. #define __(_A)  ()
  86. #endif
  87.  
  88. #endif    /* Solaris */
  89.  
  90. #endif    /* ! _CLIBDEFS_H */
  91.